package com.zdw.demo.entity;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * 微信订单表 实体
 */
@Data
@TableName("wechat_order_log")
public class WechatOrderLog implements Serializable {

    public static final String RKEY             = "rkey";
    public static final String OUT_TRADE_NO     = "out_trade_no";
    public static final String TOTAL            = "total";
    public static final String DESCRIPTION      = "description";
    public static final String APP_FLAG         = "app_flag";
    public static final String CREATE_USER_ID   = "create_user_id";
    public static final String CREATE_USER_NAME = "create_user_name";
    public static final String CREATE_TIME      = "create_time";
    public static final String UPDATE_USER_ID   = "update_user_id";
    public static final String UPDATE_USER_NAME = "update_user_name";
    public static final String UPDATE_TIME      = "update_time";

    public WechatOrderLog(String out_trade_no, String code_url, double total, String description, String app_flag, Date date) {
        this.out_trade_no = out_trade_no;
        this.code_url = code_url;
        this.total = total;
        this.description = description;
        this.app_flag = app_flag;
        this.create_time = date;
        this.update_time = date;
    }

    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    private Integer rkey;

    /**
     * 商户订单号/内部订单号
     */
    private String out_trade_no;

    /**
     * 二维码链接
     */
    private String code_url;

    /**
     * 总金额
     */
    private double total;

    /**
     * 商品描述
     */
    private String description;

    /**
     * 回调应用标识(对应入参中的appName)
     */
    private String app_flag;

    /**
     * 创建人ID
     */
    private String create_user_id;

    /**
     * 创建人名称
     */
    private String create_user_name;

    /**
     * 创建时间
     */
    private Date create_time;

    /**
     * 修改人ID
     */
    private String update_user_id;

    /**
     * 修改人名称
     */
    private String update_user_name;

    /**
     * 修改时间
     */
    private Date update_time;


}
